import { ApiProperty } from '@nestjs/swagger'

/**
 * 打卡数据统计结果
 */
export class CheckinPeriodStatisticsDto {
  @ApiProperty({ description: '实际打卡数量' })
  actualCheckins: number

  @ApiProperty({ description: '理论应打卡数量' })
  theoreticalCheckins: number

  @ApiProperty({ description: '打卡率', example: '85%' })
  checkinRate: string
}

/**
 * 打卡统计数据DTO
 */
export class CheckinStatisticsDto {
  @ApiProperty({ description: '总体打卡数据' })
  total: CheckinPeriodStatisticsDto

  @ApiProperty({ description: '当前季度打卡数据' })
  quarter: CheckinPeriodStatisticsDto

  @ApiProperty({ description: '当前月度打卡数据' })
  month: CheckinPeriodStatisticsDto

  @ApiProperty({ description: '当前周度打卡数据' })
  week: CheckinPeriodStatisticsDto
} 